package com.puppet.building182.pojo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.puppet.building182.pojo.VO.PermissionVO;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Permission {
    @ExcelProperty("ID")
    private Integer id;
    @ExcelProperty("权限名称")
    private String pname;
    @ExcelProperty("权限父ID")
    private Integer parentId;
    @ExcelProperty("权限跳转路径")
    private String url;
    @ExcelProperty("权限排序")
    private String code;
    @ExcelProperty("权限编码")
    private Integer sort;
    @ExcelProperty("权限等级")
    private Integer level;

    private List<Permission> children;

}
